package com.xidian.zhiancloud.dao.syset;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.xidian.zhiancloud.model.syset.SysAnnouncement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysAnnouncementMapper extends BaseMapper<SysAnnouncement> {

    Page<SysAnnouncement> getAnnouncementList
            (@Param("companyId") Long companyId,
             @Param("searchkey") String searchkey);

    int removeAnnouncement(List<String> list);

    List<SysAnnouncement> selectByAnnouncement(@Param("id") String id);

    int addAnnouncement(@Param("data") SysAnnouncement data);

    List<SysAnnouncement> getByValidity();

    int updateByIdAndSta(List<String> list);

}
